﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace KCMS.DataAcsess.Entitys
{
    public partial class MenuItemEntity:Entity
    {
        //String Title { get; set; }
        //Guid Id { get; set; }
        //Guid MenuId { get; set; }
        //Guid ContentId { get; set; }
        //String ContentCode { get; set; }
        //int ContentIndex { get; set; }
        //Guid ParentId { get; set; }
        //String Controller { get; set; }
        //[DefaultValue("Index")]
        //String Action { get; set; }
        //String HtmlClass { get; set; }
        public void CopyPropyties(MenuItemEntity source)
        {
            this.Id = source.Id;
            this.Title = source.Title;
            this.MenuId = source.MenuId;
            this.ContentId = source.ContentId;
            this.ContentIndex = source.ContentIndex;
            this.ParentId = source.ParentId;
            this.Controller = source.Controller;
            this.Action = source.Action;
            this.HtmlId = source.HtmlId;
            this.HtmlClass = source.HtmlClass;
            this.IndexNumber = source.IndexNumber;
            this.Published = source.Published;
            this.Area = source.Area;
            this.ContentCode = source.ContentCode;
            this.ContentCategory = source.ContentCategory;
        }
    }
}
